from django.urls import path
from .views import  conf,dev_all,netdev,backup,diff,ceshi
from .viewss import webssh


app_name="app02"

urlpatterns = [
    path('dev_all/', dev_all.devall,name='设备展示'),
    path('conf/', conf.conf,name='配置'),
    ## 自定义定时监控
    ## path('test/', test),
    path('devices/', netdev.netdev,name='设备管理'),
    path('devices/add', netdev.dev_add),
    path('devices/<int:nid>/edit/',netdev.dev_edit),
    path('devices/all',netdev.dev_all),
    path('devices/<int:nid>/ssh/',netdev.dev_ssh),
    path('devices/download/',netdev.dev_download),
    path('devices/export/',netdev.dev_export),
    path('backups/',backup.backup),
    path('diff/',diff.diff_comp),
    path('ssh/',webssh),
    path('ceshi/', ceshi.data_list),
    path('ceshi/cpu/', ceshi.data_cpu),
    path('ceshi/mem/', ceshi.data_mem),
    path('ceshi/wen/', ceshi.data_wen),


]
